package com.ruoyi.entity.service.impl;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.entity.mapper.ImageMapper;
import com.ruoyi.entity.domain.Image;
import com.ruoyi.entity.service.IImageService;

import java.util.List;

/**
 * 图片Service业务层处理
 *
 * @author Delamer
 * @date 2020-12-23
 */
@Service
public class ImageServiceImpl extends ServiceImpl<ImageMapper, Image> implements IImageService {
    public Image getImageByKey(String key) {
        return baseMapper.getImageByKey(key);
    }

    public Image getImageByKeyNot(String key) {
        return baseMapper.getImageByKeyNot(key);
    }

    public Integer getImageSizeByKey(String key) {
        return baseMapper.getImageSizeByKey(key);
    }

    public Integer getImageSizeByKeyNot(String key) {
        return baseMapper.getImageSizeByKeyNot(key);
    }

    public List<Image> getImagesUnLoad() {
        return baseMapper.getImagesUnLoad();
    }

    public List<Image> getImagesError() {
        return baseMapper.getImagesError();
    }

    public List<Image> getImageBySql(String sql) {
        return baseMapper.getImageBySql(sql);
    }
}
